﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Umbrella.Whs
{
    /// <summary>
    /// this class contains all the version numbers and release identifiers.
    /// 
    /// keep this file in sync with:
    /// - Umbrella.Whs/Properties/VersionInfo.cs
    /// - Umbrella.Whs.Setup/Product.wxs
    /// - Umbrella.SharePoint.Solution/12/TEMPLATE/FEATURES/*/feature.xml
    /// - Umbrella.SharePoint.Solution/12/Resources/umbrella_const.resx
    /// </summary>
    public static class UmbrellaVersion
    {
        public static readonly Guid ProductId = new Guid("f13fd7c7-cb8f-4959-aa4d-89204d65e3ad");
        public const string Version = "0.0.1.4";
        public const string VersionString = "0.0.1.4 CTP1";
        public const int VersionId = 2;

        public const int SharePointVersionBuild = 6425;      // this is the SharePoint build number offically accepted for this version

        public static void LogVersion()
        {
            var logger = log4net.LogManager.GetLogger(typeof(UmbrellaVersion));

            logger.InfoFormat(
                "Codename 'Umbrella' - {0} (#{1})",
                VersionString,
                VersionId
                );
        }
    }
}
